# coding: utf-8
#
import uiautomator2 as u2

# d = u2.connect()  # usb连接
d = u2.connect_wifi("192.168.0.100")  # wifi连接

d.xpath('//*[@content-desc="微信，3条通知"]/android.widget.ImageView[1]').click()
d(text="有本事(YBS)").click()
d(resourceId="com.tencent.mm:id/iki").click()
for i in range(100):
    d.send_keys("大吉大利 今晚吃鸡")
    d(text="发送").click()
d.open_url()